package cn.seqdata.rpt.simple;

import java.util.Collection;
import java.util.Map;

import com.google.common.collect.HashBasedTable;
import com.google.common.collect.Table;
import com.google.common.collect.TreeBasedTable;

public class DynaTable {
	public final Table<String/* col_key */, Object/* id */, OrderedName/* name+order */> dims = HashBasedTable.create();
	public final Table<Integer/* row_id */, String/* col */, Object/* val */> cells = TreeBasedTable.create();

	public Collection<Map<String, Object>> getCells() {
		Map<Integer, Map<String, Object>> rowMap = cells.rowMap();
		return rowMap.values();
	}
}
